<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS函数</title>
</head>
<body>
<h2>arguments.length 会返回函数被调用时收到的参数数目</h2>
<h2>toString() 方法以字符串返回函数</h2>
<p id="demo"></p>
<script>
  function myFunction(a,b){
    // return arguments.length;
    return a *  b;
  }
  //document.getElementById("demo").innerHTML = myFunction(2,2);
  document.getElementById("demo").innerHTML = myFunction.toString();
</script>
</body>
</html>